package com.dream.technology.service.impl;

import com.dream.technology.db.dao.RcborrowingSnapshotMapper;
import com.dream.technology.db.entity.RcborrowingSnapshot;
import com.dream.technology.db.entity.RcborrowingSnapshotQuery;
import com.dream.technology.service.RcborrowingSnapshotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("rcborrowingSnapshotService")
public class RcborrowingSnapshotServiceImpl implements RcborrowingSnapshotService {

    @Autowired
    RcborrowingSnapshotMapper rcborrowingSnapshotMapper;

    @Override
    public int countByExample(RcborrowingSnapshotQuery example) {
        return rcborrowingSnapshotMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(RcborrowingSnapshotQuery example) {
        return rcborrowingSnapshotMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return rcborrowingSnapshotMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(RcborrowingSnapshot record) {
        return rcborrowingSnapshotMapper.insert(record);
    }

    @Override
    public int insertSelective(RcborrowingSnapshot record) {
        return rcborrowingSnapshotMapper.insertSelective(record);
    }

    @Override
    public List<RcborrowingSnapshot> selectByExample(RcborrowingSnapshotQuery example) {
        return rcborrowingSnapshotMapper.selectByExample(example);
    }

    @Override
    public RcborrowingSnapshot selectByPrimaryKey(Long id) {
        return rcborrowingSnapshotMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(RcborrowingSnapshot record, RcborrowingSnapshotQuery example) {
        return rcborrowingSnapshotMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(RcborrowingSnapshot record, RcborrowingSnapshotQuery example) {
        return rcborrowingSnapshotMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(RcborrowingSnapshot record) {
        return rcborrowingSnapshotMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(RcborrowingSnapshot record) {
        return rcborrowingSnapshotMapper.updateByPrimaryKey(record);
    }
}
